@extends('admin.layouts.app')
@section('css')
	<link href="{{asset('assets/plugins/select2/css/select2.min.css')}}" rel="stylesheet" type="text/css" />
 
@endsection
@section('content')


						<!-- Page-Title -->
						<div class="row">
							<div class="col-sm-12">
                                

								<h4 class="page-title">管理后台</h4>
								<ol class="breadcrumb">
									<li>
										<a href="{{url('zadmin/')}}">塔台</a>
									</li>
									<li class="active">
										<a href="{{url('zadmin/notices')}}">系统通知</a>
									</li>
									
								</ol>
							</div>
						</div>
						

						
						<div class="row">
	<div class="col-sm-12">
								<div class="card-box">
                            				
        <form class="form-inline">
			<div class="form-group m-r-10">
			<label for="exampleInputName2">标题</label>
				<input type="text" class="form-control" name="keyword" placeholder="" value="{{array_get($where,'keyword')}}">
			</div>
			
			
												<button type="submit" class="btn btn-default waves-effect waves-light btn-md">
													搜索
												</button>

												<a href="{{url('zadmin/notices/create')}}?type={{array_get($where,'type')}}" class="btn btn-info waves-effect waves-light btn-md">
													添加
												</a>
											</form>
							</div>				
                         </div>

							<div class="col-sm-12">
								<div class="card-box">


									
		<div class="table-rep-plugin">
			<div class="table-responsive" >
				<table  class="table  table-striped">
					<thead>
						<tr>
							<th>ID</th>
							
							<th>标题</th>
							<th>微信端访问地址</th>						
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
                        @foreach($list as $v)  
						<tr>
							<th>{{$v->id}}</th>
							
							<td>{{$v->title}}</td>
							<td>{{config('app.url')}}/wx/notice/{{$v->id}}</td>
							<td>
								<a href="{{url('zadmin/notices/'.$v->id.'/edit')}}" class="btn btn-default btn-sm">修改</a>
								<a class="btn btn-sm btn-danger" href="{{url('zadmin/notices',$v->id)}}" data-method="delete" 
  data-token="{{csrf_token()}}" data-confirm="确定删除吗?">
<span class="btn-label">
  <i class="md md-close"></i>
</span>删除</a>
							</td>
						</tr>
                        @endforeach
													
												</tbody>
											</table>
										</div>
{{$list->appends($where)->links()}}
									</div>

								</div>
							</div>
						</div>




 @endsection 
               
         

    @section('js')
        <script src="{{asset('assets/plugins/select2/js/select2.min.js')}}" type="text/javascript"></script>

      
    @endsection    

